<!DOCTYPE html>
<html ng-app="Oa">
	<head>
		<meta charset="utf-8" />
		<title>主页</title>
		<link rel="stylesheet" href="assets/css/bootstrap.min.css">
    	<link rel="stylesheet" href="assets/css/font-awesome.min.css">
    	<link rel="stylesheet" href="assets/css/beyond.min.css">
    	<link rel="sstylesheet" href="assets/css/demo.min.css"/>
    	<link rel="stylesheet" href="assets/css/typicons.min.css">
    	<link rel="stylesheet" href="assets/css/animate.min.css">
    	<link rel="stylesheet" href="css/index.css">
    	<link rel="stylesheet" href="http://apps.bdimg.com/libs/jqueryui/1.10.4/css/jquery-ui.min.css">
    	<link rel="stylesheet" href="assets/wangEditor-3.1.1/release/wangEditor.min.css">
	</head>
	<body ng-controller="OaCtrl">
		<div class="navbar">
			<div class="navbar-inner">
				<div class="navbar-container">
					<div class="navbar-header pull-left">
						<a href="#" class="navbar-brand">
							<small><img src="img/logoko.png" alt="#"></small>
						</a>
					</div>
					<div class="sidebar-collapse" id="sidebar-collapse">
						<i class="collapse-icon fa fa-bars"></i>
					</div>
					<div class="navbar-header pull-right">
						<div class="navbar-account">
							<ul class="account-area">
								<li class="">
	                <a class="dropdown-toggle" data-toggle="dropdown"  aria-expanded="false">
	                    <i class="icon fa fa-envelope"></i>
	                    <span class="badge" ng-if="newsNum!=0">{{newsNum}}</span>
	                </a>
                    <!--Messages Dropdown-->
                    <ul class="pull-right dropdown-menu dropdown-arrow dropdown-messages">
                        <li ng-repeat="x in news">
                            <a ui-sref="dealApply({id:'{{user.email}}',type:2})">
                           <!-- <img src="x.src" class="message-avatar"> -->
                                <div class="message">
                                    <span class="message-sender">
                                        {{x.name}}
                                    </span>
                                    <span class="message-time">
                                        {{x.sendDate}}
                                    </span>
                                    <span class="message-subject">
                                        {{x.type | applyType}}申请
                                    </span>
                                    <span class="message-body">
                                        {{x.info}}
                                    </span>
                                </div>
                            </a>
                        </li>
                    </ul>
                    <!--/Messages Dropdown-->
                </li>
								<!--状态栏-->
								<li>
									<a class="dropdown-toggle" data-toggle="dropdown" href="#">
										<i class="icon fa fa-user"></i>
										</a>
										<ul class="pull-right dropdown-menu dropdown-arrow" style="min-width: 50px;">
											<li class="dropdown-header bordered-blue" style="margin-bottom: 0px;">
												<a href="#" style="padding: 3px 2px;"><i class="icon fa fa-user"><span> 在线中</span></i></a>
											</li>
											<li class="dropdown-header bordered-blue" style="margin-bottom: 0px;">
												<a href="#" style="padding: 3px 2px;"><i class="icon fa fa-flash"><span> 忙碌中</span></i></a>
											</li>
											<li class="dropdown-header bordered-blue" style="margin-bottom: 0px;">
												<a href="#" style="padding: 3px 2px;"><i class="icon fa fa-plane"><span> 出差中</span></i></a>
											</li>
											<li class="dropdown-header bordered-blue" style="margin-bottom: 0px;">
												<a href="#" style="padding: 3px 2px;"><i class="icon fa fa-moon-o"><span> 休假中</span></i></a>
											</li>
										<li></li>
										</ul>

								</li>
								<!--个人中心-->
								<li>
									<a class="login-area dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
										<div class="avatar" title="查看你的个人资料">
	                        	<img src="{{user.headphoto}}" />
	                    	</div>
	                    <section>
	                        <h2><span class="profile"><span>{{user.name}}</span></span></h2>
	                    </section>
									</a>

									<ul class="pull-right dropdown-menu dropdown-arrow dropdown-login-area">
										<li class="email"><a>{{user.email}}</a></li>
										<li><div class="avatar-area"><img src="{{user.headphoto}}" style="width: 112px;margin-left: -20px;"/>
											<span class="caption" ng-click="changePhoto()" style="width:112px">更改头像

											</span>
											<form id="headphotoForm">
												<input type="file" accept="image/*" id="headphoto" name="headphoto" ng-model="user.headphoto" onchange="angular.element(this).scope().uploadHeadPhoto(this.files)"/>
											</form>

										</div></li>
										<li class="dropdown-footer"><a ng-click="loginOut()">退出</a></li>
									</ul>
								</li>
							</ul>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="main-container container-fluid">
			<div class="page-container">
				<div class="page-sidebar " id="sidebar">
					<ul class="nav sidebar-menu">
						<li><a ui-sref="mainOa"><i class="menu-icon glyphicon glyphicon-home"></i><span class="menu-text">首页</span></a></li>
						<li>
							<a ui-sref="fileAll({type:0})" class="menu-dropdown"><i class="menu-icon glyphicon glyphicon glyphicon-folder-open"></i><span class="menu-text">文件管理</span><i class="menu-expand	"></i></a>
							<ul class="submenu">
								<li><a ui-sref="fileAll({type:0})" ><span class="menu-text">全部</span></a></li>
								<li><a ui-sref="fileDoc({type:2})" ><span class="menu-text">文档</span></a></li>
								<li><a ui-sref="fileMp4({type:3})" ><span class="menu-text">视频</span></a></li>
								<li><a ui-sref="fileJpg({type:1})" ><span class="menu-text">图片</span></a></li>
							</ul>
						</li>
						<li><a ui-sref="meeting"><i class="menu-icon glyphicon glyphicon glyphicon-calendar"></i><span class="menu-text">会议管理</span></a></li>
						<li><a ui-sref="teamactivity"><i class="menu-icon glyphicon glyphicon glyphicon-tree-conifer"></i><span class="menu-text">团建活动</span></a></li>
						<li ng-if="!admin"><a ui-sref="suggestionbox" ><i class="menu-icon glyphicon glyphicon glyphicon-briefcase"></i><span class="menu-text">意见箱</span></a></li>
						<li ng-if="admin">
							<a ui-sref="staffManage" class="menu-dropdown">
								<i class="menu-icon glyphicon glyphicon glyphicon-user"></i>
								<span class="menu-text">员工管理</span>
								<!-- <i class="menu-expand	"></i> -->
							</a>
							<!-- <ul class="submenu">
								<li><a href="#" ><span class="menu-text">员工信息</span></a></li>
								<li><a href="#" ><span class="menu-text">增加员工</span></a></li>
							</ul> -->
						</li>
						<li ng-if="admin"><a ui-sref="suggestionleaderbox"><i class="menu-icon glyphicon glyphicon glyphicon-briefcase"></i><span class="menu-text">意见箱</span></a></li>
					</ul>
				</div>
				<div class="page-content">
					<div class="page-header position-relative">
						<div class="header-title">
							<h1>{{TableTitle}}</h1>
						</div>
						<div class="header-buttons">
							<a class="fullscreen" id="fullscreen-toggler" href="#">
								<i class="glyphicon glyphicon-fullscreen"></i>
							</a>
							<a class="sidebar-toggler"  href="#">
								<i class="fa fa-arrows-h"></i>
							</a>
						</div>
					</div>

					<div class="page-body">
						<div ui-view></div>
					</div>
				</div>

			</div>
		</div>
	</body>

	<script src="assets/js/jquery-2.0.3.min.js"></script>
	<script src="assets/js/bootstrap.min.js"></script>
	<script src="assets/js/jquery-ui.min.js"></script>
	<script src="assets/js/jquery.slimscroll.min.js" charset="utf-8"></script>
	<script src="assets/js/angular.min.js"></script>
 	<script src="assets/js/angular-ui-router.min.js"></script>

	<script src="assets/js/skins.min.js"></script>
	<script src="assets/js/beyond.min.js"></script>
	<script src="assets/js/bootbox/bootbox.js"></script>
	<script src="assets/js/datetime/moment.js"></script>
	<script src="assets/js/datetime/daterangepicker.js"></script>
	<script src="assets/js/datetime/bootstrap-datepicker.js"></script>
	<script src="assets/js/datetime/bootstrap-timepicker.js"></script>
	<script src="assets/js/toastr/toastr.js"></script>
	<script src="assets/js/distpicker/distpicker.data.min.js"></script>
	<script src="assets/js/distpicker/distpicker.min.js"></script>
	<script src="assets/wangEditor-3.1.1/release/wangEditor.min.js"></script>
	<script src="assets/js/jquery-ui-1.10.4.custom.js"></script>
	<script src="assets/js/fullcalendar/fullcalendar.js"></script>
	<script src="assets/js/select2/select2.js"></script>


	<!-- <script src="js/myurl.js"></script> -->
	<script src="js/url.js"></script>
	<script src="js/router.js"></script>
	<script src="js/directives.js"></script>
	<script src="js/filter.js" charset="utf-8"></script>
	<script src="js/TableTitle.js"></script>
	<script src="js/fileCtrl.js" charset="utf-8"></script>
	<script src="js/mainControl.js"></script>
	<script src="js/essayControl.js"></script>
	<script src="js/staffInfoControl.js"></script>
	<script src="js/meetingCtrl.js"></script>
	<script src="js/suggestCtrl.js"></script>
	<script src="js/applyCtrl.js" charset="utf-8"></script>
</html>
